<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
        <title>Document</title>
</head>
<body>
<input type="button" id="btn" value="点我">
<script>

    //载入时间
    $(function () {
        $('#btn').click(function () {
            $.get('/home/ajax',function (data) {
                console.log(data)
            },'json')
        })
    })
</script>
</body>
</html>
